<?php
	
include ROOTPATH .'include'. DS .'protect.php';
include ROOTPATH .'include'. DS .'isMyQuery.php';
include ROOTPATH .'include'. DS .'checkUserLogin.php'; 

include ROOTPATH .'class'. DS .'favorites.class.php'; 

$do					= getQuery('do') ;
$id					= getId('id');

$favorites			= new favorites();

switch($do){	
	case 'add' 	: $favorites -> add($id) ;
	break;
	
	case 'del' 	: $favorites -> del($id) ;
	break;
}
	           
?>